/*
 * @Copyright: 2017 www.yyfax.com Inc. All rights reserved.
 */
package com.yyfax.pay.quartz.service;

import com.yyfax.pay.order.model.po.NotifyTaskPO;
import com.yyfax.pay.order.model.po.QueryTaskPO;

/**
 * <h1>任务接口</h1>
 * <p>
 * 主要提供给order模块调用触发.
 * </p>
 * 
 * @author jiangmy
 * @date 2017-04-17 11:31:40
 * @since v1.0.0
 */
public interface PayTaskService {

	/**
	 * 定时查询: 在订单提交给第三方后,就调用本接口,本接口完成持久化操作;并在规定时间后,确认订单状态,如果未返回,则执行查询.
	 * 
	 * @author jiangmy
	 * @date 2017-04-17 11:33:03
	 * @since v1.0.0
	 */
	public void queryTask(QueryTaskPO task) throws Exception;

	/**
	 * 通知任务
	 * 
	 * @author jiangmy
	 * @date 2017-04-17 11:45:05
	 * @since v1.0.0
	 * @param task
	 * @throws Exception
	 */
	public void notifyTask(NotifyTaskPO task) throws Exception;

}
